package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OrderStafforderMapper;
import com.ruoyi.system.domain.OrderStafforder;
import com.ruoyi.system.service.IOrderStafforderService;

/**
 * 员工管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-23
 */
@Service
public class OrderStafforderServiceImpl implements IOrderStafforderService 
{
    @Autowired
    private OrderStafforderMapper orderStafforderMapper;

    /**
     * 查询员工管理
     * 
     * @param userId 员工管理主键
     * @return 员工管理
     */
    @Override
    public OrderStafforder selectOrderStafforderByUserId(Long userId)
    {
        return orderStafforderMapper.selectOrderStafforderByUserId(userId);
    }

    /**
     * 查询员工管理列表
     * 
     * @param orderStafforder 员工管理
     * @return 员工管理
     */
    @Override
    public List<OrderStafforder> selectOrderStafforderList(OrderStafforder orderStafforder)
    {
        return orderStafforderMapper.selectOrderStafforderList(orderStafforder);
    }

    /**
     * 新增员工管理
     * 
     * @param orderStafforder 员工管理
     * @return 结果
     */
    @Override
    public int insertOrderStafforder(OrderStafforder orderStafforder)
    {
        return orderStafforderMapper.insertOrderStafforder(orderStafforder);
    }

    /**
     * 修改员工管理
     * 
     * @param orderStafforder 员工管理
     * @return 结果
     */
    @Override
    public int updateOrderStafforder(OrderStafforder orderStafforder)
    {
        return orderStafforderMapper.updateOrderStafforder(orderStafforder);
    }

    /**
     * 批量删除员工管理
     * 
     * @param userIds 需要删除的员工管理主键
     * @return 结果
     */
    @Override
    public int deleteOrderStafforderByUserIds(Long[] userIds)
    {
        return orderStafforderMapper.deleteOrderStafforderByUserIds(userIds);
    }

    /**
     * 删除员工管理信息
     * 
     * @param userId 员工管理主键
     * @return 结果
     */
    @Override
    public int deleteOrderStafforderByUserId(Long userId)
    {
        return orderStafforderMapper.deleteOrderStafforderByUserId(userId);
    }
}
